package com.goodfox.web.generic.authority.entity;

import java.io.Serializable;
import java.util.List;

import com.goodfox.web.generic.provide.annotation.DbEntity;
import com.goodfox.web.generic.provide.annotation.DbField;
import com.goodfox.web.generic.role.entity.Role;

/**
 * 资源实体
 * @author qin gt
 *
 */
@DbEntity(comment="系统资源",table="DSYS_RESOURCES")
public class Resources implements Serializable {

	@DbField(comment="实例化UID",meaning=false)
	private static final long serialVersionUID = -339819091907708231L;
	
	@DbField(comment="资源ID",column="RSE_ID",pk=true,export=false,javaType="String",dataType="VARCHAR2",required=true,maxLength=50)
	private String rseId;

	@DbField(comment="功能ID",column="FUN_ID",javaType="String",dataType="VARCHAR2",required=true,maxLength=50)
	private String funId;

	@DbField(comment="资源编码",column="RSE_CODE",javaType="String",dataType="VARCHAR2",maxLength=20)
	private String rseCode;

	@DbField(comment="资源类型",column="RSE_TYPE",export=false,javaType="String",dataType="VARCHAR2",maxLength=2)
	private String rseType;

	@DbField(comment="访问的url路径",column="RSE_URL",javaType="String",dataType="VARCHAR2",maxLength=200)
	private String rseUrl;

	@DbField(comment="访问的类",column="RSE_CLASS",javaType="String",dataType="VARCHAR2",maxLength=50)
	private String rseClass;

	@DbField(comment="访问的方法",column="RSE_FUNCTION",javaType="String",dataType="VARCHAR2",maxLength=50)
	private String rseFunction;

	@DbField(comment="资源使用方法",column="RSE_USE",javaType="String",dataType="VARCHAR2",maxLength=2)
	private String rseUse;

	@DbField(comment="资源备注",column="RSE_REMARK",javaType="String",dataType="VARCHAR2",maxLength=200)
	private String rseRemark;

	@DbField(comment="资源状态",column="RSE_STATE",export=false,javaType="String",dataType="VARCHAR2",maxLength=2)
	private String rseState;

	@DbField(comment="资源类型",column="RSE_TYPE_NAME",javaType="String",dataType="VARCHAR2")
	private String rseTypeName;

	@DbField(comment="资源状态",column="RSE_STATE_NAME",javaType="String",dataType="VARCHAR2")
	private String rseStateName;

	@DbField(comment="角色列表",export=false,direct=false)
	private List<Role> roleList;
	
	public String getRseId() {
		return rseId;
	}
	public void setRseId(String rseId) {
		this.rseId = rseId;
	}
	public String getFunId() {
		return funId;
	}
	public void setFunId(String funId) {
		this.funId = funId;
	}
	public String getRseCode() {
		return rseCode;
	}
	public void setRseCode(String rseCode) {
		this.rseCode = rseCode;
	}
	public String getRseType() {
		return rseType;
	}
	public void setRseType(String rseType) {
		this.rseType = rseType;
	}
	public String getRseUrl() {
		return rseUrl;
	}
	public void setRseUrl(String rseUrl) {
		this.rseUrl = rseUrl;
	}
	public String getRseClass() {
		return rseClass;
	}
	public void setRseClass(String rseClass) {
		this.rseClass = rseClass;
	}
	public String getRseFunction() {
		return rseFunction;
	}
	public void setRseFunction(String rseFunction) {
		this.rseFunction = rseFunction;
	}
	public String getRseUse() {
		return rseUse;
	}
	public void setRseUse(String rseUse) {
		this.rseUse = rseUse;
	}
	public String getRseRemark() {
		return rseRemark;
	}
	public void setRseRemark(String rseRemark) {
		this.rseRemark = rseRemark;
	}
	public String getRseState() {
		return rseState;
	}
	public void setRseState(String rseState) {
		this.rseState = rseState;
	}
	public String getRseTypeName() {
		return rseTypeName;
	}
	public void setRseTypeName(String rseTypeName) {
		this.rseTypeName = rseTypeName;
	}
	public String getRseStateName() {
		return rseStateName;
	}
	public void setRseStateName(String rseStateName) {
		this.rseStateName = rseStateName;
	}
	public List<Role> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}
	
	
}
